<fieldset>
    <legend>条件搜索</legend>
    <script>
        layui.form.render();
    </script>
    <form action="{:request()->url()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">
        <div class="layui-form-item layui-inline">

            <div class="layui-form-item layui-inline">
                <label class="layui-form-label">轮播图名称</label>
                <label class="layui-input-inline">
                    <input class="layui-input" name="title" placeholder="请输入轮播图名称" value="{:input('title','')}">
                </label>
            </div>

            <div class="layui-form-item layui-inline">
                <label class="layui-form-label">展示位置</label>
                <label class="layui-input-inline">
                    <select class="layui-select" name="type">
                        <option value=''>- 展示位置 -</option>
                        {foreach ["首页", "邻享", "商城", "龙庭社圈", "无忧社区", "员工端首页"] as $k=>$v}
                        {if input('type') eq $k}
                        <option selected value="{$k}">{$v}</option>
                        {else}
                        <option value="{$k}">{$v}</option>
                        {/if}{/foreach}
                    </select>
                </label>
            </div>

            <div class="layui-form-item layui-inline">
                <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            </div>
    </form>
</fieldset>